package com.antdesignbackend.backend.form.businessAccount.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 肉品经营台账
 *
 * @author 林宇杰
 * @email businessAccount
 * @date 2020-08-12 13:44:25
 */

@Data
@TableName(value = "t_businessAccount")
public class BusinessAccount implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//肉品经营者姓名
	@TableField(value = "Operator")
	private String operator;
	//日期
	@TableField(value = "BusinessDate")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date businessDate;
	//销售地点
	@TableField(value = "SaleLocation")
	private String saleLocation;
	//经营头数
	@TableField(value = "Number")
	private Double number;
	//经营生猪肉品来源地(养殖地点)
	@TableField(value = "BreedLocation")
	private String breedLocation;
	//饲养户名称
	@TableField(value = "BreedName")
	private String breedName;
	//上传《动物检疫合格证明》
	@TableField(value = "Photo")
	private String photo;
	//产地检疫证明号码
	@TableField(value = "CertificateNumber")
	private String certificateNumber;
	//生猪耳标号码1350481
	@TableField(value = "PigNo")
	private String pigNo;
	//备注
	@TableField(value = "Remark")
	private String remark;
	//状态，0未通过，1通过，2审批中，3驳回
	@TableField(value = "Types")
	private Integer types;
	//创建人
	@TableField(value = "CreateBy")
	private Integer createBy;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "CreateTime")
	private Date createTime;
	//企业ID
	@TableField(value = "Eid")
	private Integer eid;
}
